package com.example.asus.homework11.retrofitservice;

import com.example.asus.homework11.bean.FoodListBean;
import com.example.asus.homework11.bean.ShopBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 彭立翔 on 2018/10/14.
 * Coder Level:MAX.
 */

public interface ShopService {
    @GET("getAllShops.do ")
    Call<List<ShopBean>> getShop();

    //获取店铺菜单
    @GET("getFoodByShop.do")
    Call<List<FoodListBean>> getFoodByShop(@Query("shop_id") int shop_id);
}
